import request from '@/common/request.js'
const menu_api = {}


// 获取菜单
menu_api.getList = data => request.globalRequest({
	methods: 'POST',
	url: '/api/menu/list',
	data: data,
})

// 编辑菜单
menu_api.editMenu = data => request.globalRequest({
	methods: 'POST',
	url: '/api/menu/edit',
	data: data,
})

// 添加菜单
menu_api.addMenu = data => request.globalRequest({
	methods: 'POST',
	url: '/api/menu/add',
	data: data,
})

// 添加菜单
menu_api.removeMenu = data => request.globalRequest({
	methods: 'POST',
	url: '/api/menu/del',
	data: data,
})



export default menu_api
